﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BankSystemWithCSharp
{
    public partial class ShowMoneyPanel : UserControl
    {
        IShowMoney showMoney;
        public ShowMoneyPanel()
        {
            InitializeComponent();
            showMoney = new ShowMoneyController(moneyLabel, showMoneyButton);
            
        }

        public void HideMoney()
        {
            showMoney.Hide();
        }

        private void showMoneyButton_Click(object sender, EventArgs e)
        {
            showMoney.ShowMoneyButton_Click(sender, e);
        }
    }
}
